﻿using HuiLian.Model.Models.Base;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HuiLian.Model.Models
{
    [Table("OrderItem")]
    public class OrderItem : ModelBase
    {
        private int id;
        private string number;
        private string name;
        private int count;
        private double money;
        private int foodId;
        [Key]
        public int Id { get { return id; } set { id = value; OnPropertyChanged("Id"); } }
        public string Number { get { return number; } set { number = value; OnPropertyChanged("Number"); } }
        public string Name { get { return name; } set { name = value; OnPropertyChanged("Name"); } }
        public int Count { get { return count; } set { count = value; OnPropertyChanged("Count"); } }
        public double Money { get { return money; } set { money = value; OnPropertyChanged("Money"); } }
        public int FoodId { get { return foodId; } set { foodId = value; OnPropertyChanged("FoodId"); } }
    }
}
